package learn2;

public class animal {
    int age;
    String name;
    public animal(){
        super();
    }
    public animal(int age,String name){
        this.age=age;
        this.name=name;
    }
    public void eat()
    {
        System.out.println("吃");
    }
    public void sleep()
    {
        System.out.println("睡");
    }
    public void run()
    {
        System.out.println("跑");
    }
}
